<?php slot('jquery_include')?>
HOME.init();
<?php end_slot()?>
<?php slot('header_css')?>
<style type="text/css">
.banner .nivoSlider {
	height: 200px;
}

.banner .nivoSlider img {
	height: 200px;
}


.banner .nivo-directionNav {
	width: 980px;
	margin: -80px auto 0px auto;
}
#nivo-slider.nivoSlider{
	height: 200px;
	overflow: hidden;
}
#nivo-slider.nivoSlider a{
	height: 200px;
	overflow: hidden;
	display: inline-block;
}
.banner .nivo-controlNav {
	width: 1000px;
}
.mCSB_scrollTools .mCSB_draggerContainer{
	margin-right:-11px;
}
.mCSB_container{
	margin-right:0px;
}
</style>
<?php end_slot()?>
<?php slot('banners')?>
<?php include_component('componentUlti', 'banner')?>
<div class="clr"></div>
<?php end_slot()?>
<div id="news">
	<div class="content-left">
		<div class="news-left">
			<div  id="news-content-list-top">
				<div class="top">
					<div class="img-bound"><a href="<?php echo url_for2('news_detail', array('id' => $data['news_top'][0]['id'],'title' => UserStringHelper::titleToAddress($data['news_top'][0]['title'])))?>" title="<?php echo $data['news_top'][0]['title']?>" alt="<?php echo $data['news_top'][0]['title']?>"><img src="<?php echo $data['news_top'][0]['photo_url']?>"/></a></div>
					<div class="news-title"><a class="tooltip-show" title="<?php echo '<div class=\'title\'>'.$data['news_top'][0]['title'].'</div><div class=\'content\'>'.$data['news_top'][0]['description'].'</div>'?>"  href="<?php echo url_for2('news_detail', array('id' => $data['news_top'][0]['id'],'title' => UserStringHelper::titleToAddress($data['news_top'][0]['title'])))?>" alt="<?php echo $data['news_top'][0]['title']?>"><?php echo $data['news_top'][0]['title']?></a></div>
					<div class="news-description"><?php echo html_entity_decode($data['news_top'][0]['description'])?></div>
				</div>
				<div class="bottom">
					<div class="item">
						<div class="img-bound"><a href="<?php echo url_for2('news_detail', array('id' => $data['news_top'][1]['id'],'title' => UserStringHelper::titleToAddress($data['news_top'][1]['title'])))?>" title="<?php echo $data['news_top'][1]['title']?>" alt="<?php echo $data['news_top'][1]['title']?>"><img src="<?php echo $data['news_top'][1]['photo_url']?>"/></a></div>
						<div class="news-title"><a class="tooltip-show" href="<?php echo url_for2('news_detail', array('id' => $data['news_top'][1]['id'],'title' => UserStringHelper::titleToAddress($data['news_top'][1]['title'])))?>" title="<?php echo '<div class=\'title\'>'.$data['news_top'][1]['title'].'</div><div class=\'content\'>'.$data['news_top'][1]['description'].'</div>'?>" alt="<?php echo $data['news_top'][1]['title']?>"><?php echo $data['news_top'][1]['title']?></a></div>
					</div>
					<div class="item">
						<div class="img-bound"><a href="<?php echo url_for2('news_detail', array('id' => $data['news_top'][2]['id'],'title' => UserStringHelper::titleToAddress($data['news_top'][2]['title'])))?>" title="<?php echo $data['news_top'][2]['title']?>" alt="<?php echo $data['news_top'][2]['title']?>"><img src="<?php echo $data['news_top'][2]['photo_url']?>"/></a></div>
						<div class="news-title"><a class="tooltip-show" href="<?php echo url_for2('news_detail', array('id' => $data['news_top'][2]['id'],'title' => UserStringHelper::titleToAddress($data['news_top'][2]['title'])))?>" title="<?php echo '<div class=\'title\'>'.$data['news_top'][2]['title'].'</div><div class=\'content\'>'.$data['news_top'][2]['description'].'</div>'?>" alt="<?php echo $data['news_top'][2]['title']?>"><?php echo $data['news_top'][2]['title']?></a></div>
					</div>
					<div class="item">
						<div class="img-bound"><a href="<?php echo url_for2('news_detail', array('id' => $data['news_top'][3]['id'],'title' => UserStringHelper::titleToAddress($data['news_top'][3]['title'])))?>" title="<?php echo $data['news_top'][3]['title']?>" alt="<?php echo $data['news_top'][3]['title']?>"><img src="<?php echo $data['news_top'][3]['photo_url']?>"/></a></div>
						<div class="news-title"><a class="tooltip-show" href="<?php echo url_for2('news_detail', array('id' => $data['news_top'][3]['id'],'title' => UserStringHelper::titleToAddress($data['news_top'][3]['title'])))?>" title="<?php echo '<div class=\'title\'>'.$data['news_top'][3]['title'].'</div><div class=\'content\'>'.$data['news_top'][3]['description'].'</div>'?>" alt="<?php echo $data['news_top'][3]['title']?>"><?php echo $data['news_top'][3]['title']?></a></div>
					</div>
					<div class="clr"></div>
				</div>
			</div>
			<!-- <div  id="products-content-list-top" style="display: none">
				<div class="top">
					<div class="img-bound"><a href="<?php echo url_for2('finance_detail', array('id' => $data['products_top'][0]['id'],'title' => UserStringHelper::titleToAddress($data['products_top'][0]['title'])))?>" title="<?php echo $data['products_top'][0]['title']?>" alt="<?php echo $data['products_top'][0]['title']?>"><img src="<?php echo $data['products_top'][0]['photo_url']?>"/></a></div>
					<div class="news-title"><a class="tooltip-show" title="<?php echo '<div class=\'title\'>'.$data['products_top'][0]['title'].'</div><div class=\'content\'>'.$data['products_top'][0]['description'].'</div>'?>" href="<?php echo url_for2('finance_detail', array('id' => $data['products_top'][0]['id'],'title' => UserStringHelper::titleToAddress($data['products_top'][0]['title'])))?>" title="<?php echo $data['products_top'][0]['title']?>" alt="<?php echo $data['products_top'][0]['title']?>"><?php echo $data['products_top'][0]['title']?></a></div>
					<div class="news-description"><?php echo html_entity_decode($data['products_top'][0]['description'])?></div>
				</div>
				<div class="bottom">
					<div class="item">
						<div class="img-bound"><a  href="<?php echo url_for2('finance_detail', array('id' => $data['products_top'][1]['id'],'title' => UserStringHelper::titleToAddress($data['products_top'][1]['title'])))?>" title="<?php echo $data['products_top'][1]['title']?>" alt="<?php echo $data['products_top'][1]['title']?>"><img src="<?php echo $data['products_top'][1]['photo_url']?>"/></a></div>
						<div class="news-title"><a class="tooltip-show" href="<?php echo url_for2('finance_detail', array('id' => $data['products_top'][1]['id'],'title' => UserStringHelper::titleToAddress($data['products_top'][1]['title'])))?>" title="<?php echo '<div class=\'title\'>'.$data['products_top'][1]['title'].'</div><div class=\'content\'>'.$data['products_top'][1]['description'].'</div>'?>" alt="<?php echo $data['products_top'][1]['title']?>"><?php echo $data['products_top'][1]['title']?></a></div>
					</div>
					<div class="item">
						<div class="img-bound"><a href="<?php echo url_for2('finance_detail', array('id' => $data['products_top'][2]['id'],'title' => UserStringHelper::titleToAddress($data['products_top'][2]['title'])))?>" title="<?php echo $data['products_top'][2]['title']?>" alt="<?php echo $data['products_top'][2]['title']?>"><img src="<?php echo $data['products_top'][2]['photo_url']?>"/></a></div>
						<div class="news-title"><a class="tooltip-show" href="<?php echo url_for2('finance_detail', array('id' => $data['products_top'][2]['id'],'title' => UserStringHelper::titleToAddress($data['products_top'][2]['title'])))?>" title="<?php echo '<div class=\'title\'>'.$data['products_top'][2]['title'].'</div><div class=\'content\'>'.$data['products_top'][2]['description'].'</div>'?>" alt="<?php echo $data['products_top'][2]['title']?>"><?php echo $data['products_top'][2]['title']?></a></div>
					</div>
					<div class="item">
						<div class="img-bound"><a href="<?php echo url_for2('finance_detail', array('id' => $data['products_top'][3]['id'],'title' => UserStringHelper::titleToAddress($data['products_top'][3]['title'])))?>" title="<?php echo $data['products_top'][3]['title']?>" alt="<?php echo $data['products_top'][3]['title']?>"><img src="<?php echo $data['products_top'][3]['photo_url']?>"/></a></div>
						<div class="news-title"><a class="tooltip-show" href="<?php echo url_for2('finance_detail', array('id' => $data['products_top'][3]['id'],'title' => UserStringHelper::titleToAddress($data['products_top'][3]['title'])))?>" title="<?php echo '<div class=\'title\'>'.$data['products_top'][3]['title'].'</div><div class=\'content\'>'.$data['products_top'][3]['description'].'</div>'?>" alt="<?php echo $data['products_top'][3]['title']?>"><?php echo $data['products_top'][3]['title']?></a></div>
					</div>
					<div class="clr"></div>
				</div>
			</div> -->
		</div>
		<div class="news-right">
			<div class="title-arrow click-change-bk"  data-refer="news-content-list" style="margin-right:20px;;">
				<span><a href="<?php echo url_for2('news')?>">Tin tức tài chính</a></span>
			</div>
			<!-- <div class="title-arrow click-change title-arrow-none"  data-refer="products-content-list">
				<span>Khuyến mãi</span>
			</div>  -->
			<div class="clr"></div>
			<div id="news-content-list">
				<ul>
					<?php
					$nowD = date('d-m-Y',time());
					foreach ($data['news'] as $val):
					$update = date('d-m-Y',strtotime($val['updated_at']));
					?>
					<li>
						<a class="tooltip-show" href="<?php echo url_for2('news_detail', array('id' => $val['id'],'title' => UserStringHelper::titleToAddress($val['title'])))?>" title="<?php echo '<div class=\'title\'>'.$val['title'].'</div><div class=\'content\'>'.$val['description'].'</div>'?>" alt="<?php echo $val['title']?>"><?php echo $val['title']?> 
							
						</a>
					</li>
					<?php endforeach;?>
				</ul>
			</div>
			<div id="products-content-list" style="display: none">
				<ul>
					<?php 
					$nowD = date('d-m-Y',time());
					foreach ($data['products'] as $val):
					$update = date('d-m-Y',strtotime($val['updated_at']));
					?>
					<li>
						<a class="tooltip-show" href="<?php echo url_for2('finance_detail', array('id' => $val['id'],'title' => UserStringHelper::titleToAddress($val['title'])))?>" title="<?php echo '<div class=\'title\'>'.$val['title'].'</div><div class=\'content\'>'.$val['description'].'</div>'?>" alt="<?php echo $val['title']?>"><?php echo $val['title']?>
							
						</a>
					</li>
					<?php endforeach;?>
					<?php
					$nowD = date('d-m-Y',time());
					foreach ($data['product_loans'] as $val):
					$update = date('d-m-Y',strtotime($val['updated_at']));
					?>
					<li>
						<a class="tooltip-show" href="<?php echo url_for2('loan_detail', array('id' => $val['id'],'title' => UserStringHelper::titleToAddress($val['title'])))?>" title="<?php echo '<div class=\'title\'>'.$val['title'].'</div><div class=\'content\'>'.$val['description'].'</div>'?>" alt="<?php echo $val['title']?>"><?php echo $val['title']?>
							
						</a>
					</li>
					<?php endforeach;?>
				</ul>
			</div>
		</div>
		<div class="clr"></div>
	</div>
	<div class="content-right advs" data-page="<?php echo USER_DEFINED::ADV_PAGE_HOME_TOP?>" data-attr='class="adv-hometop"' data-page-num='1' data-limit='3'>
		
	</div>
	<div class="clr"></div>
</div>
<div id="faq" class="spacing-top">
	<div class="content-left">
		<div class="title-arrow title-spacing-bottom">
			<span>Hỏi đáp thông tin tài chính</span>
		</div>
		<ul class="tabs"><?php foreach($data['list']['faq_cates'] as $cur): ?>
				<li><a href="#"><?php echo $cur['name']?></a></li>
				<?php endforeach; ?>
		</ul><div class="clr"></div>
		<div class="panes">
			<?php foreach($data['list']['faq_cates'] as $cur): ?>
			<div class="faq-scrollbar" style="margin-top: -1px;" data-faq="<?php echo $cur['id']?>">
				<div data-faq="<?php echo $cur['id']?>" class="faq-inner">
					
				</div>
				<div class="control">
					<a href="<?php echo url_for2('faq', array('cate_id'=>$cur['id']))?>" class="button-none">Xem tất cả </a>
					<a href="<?php echo url_for2('faq_form')?>" class="button button-right">Gửi câu hỏi </a>
					<div class="clr"></div>
				</div>
			</div>
			<?php endforeach; ?>
		</div>
	</div>
	<div class="content-right padding-tabs" style="margin-top:14px;">
		<div class="title-arrow">
			<span> Chỉ số hôm nay</span>
		</div>
		<div class="daily-content" style="">
			<?php echo html_entity_decode($data['sys_page']['content_daily'])?>
		</div>
	</div>
	<div class="clr"></div>
</div>
<div class="spacing-top">
	<div class="content-left">
		<div id="loan">
			<div class="title-arrow title-spacing-bottom">
				<span>Vay vốn thông thường</span>
			</div>
			<ul class="tabs"><?php foreach($data['list']['banking_loans'] as $cur): ?>
					<li><a href="#"><?php echo $cur['name']?></a></li>
					<?php endforeach; ?>
			</ul><div class="clr"></div>
			<div class="panes">
				<?php foreach($data['list']['banking_loans'] as $cur): ?>
				<div style="margin-top: -1px; ">
					<div class="loan-scrollbar" style="height:353px;overflow: hidden;" data-loan="<?php echo $cur['id']?>">
						<div data-loan="<?php echo $cur['id']?>" class="banking-loan-rate">
							
						</div>
					</div>
				</div>
				<?php endforeach; ?>
			</div>
			<a class="view-more" id="loan-view-more">Xem thêm</a>
		</div>
		<div id="period" class="spacing-top">
			<div class="title-arrow title-spacing-bottom">
				<span>Tiền gửi thông thường</span>
			</div>
			<ul class="tabs"><?php foreach($data['list']['currencies'] as $cur): ?>
					<li><a href="#"><?php echo $cur['short_name'], ' - ', $cur['symbol'] ?></a></li>
					<?php endforeach; ?>
			</ul><div class="clr"></div>
			<div class="panes">
				<?php foreach($data['list']['currencies'] as $cur): ?>
				<div style="margin-top: -1px; ">
					<div class="period-scrollbar" style="height:353px; overflow: hidden;" data-currency="<?php echo $cur['id']?>">
						<div data-currency="<?php echo $cur['id']?>" class="banking-period-rate">
							
						</div>
					</div>
				</div>
				<?php endforeach; ?>
			</div>
			<a class="view-more" id="period-view-more">Xem thêm</a>
		</div>
		<div id="card" class="spacing-top">
			<div class="title-arrow title-spacing-bottom">
				<span>Thẻ ngân hàng</span>
			</div>
			<ul class="tabs"><?php foreach($data['list']['banking_cards'] as $cur): ?>
					<li><a href="#"><?php echo $cur['name']?></a></li>
					<?php endforeach; ?>
			</ul><div class="clr"></div>
			<div class="panes">
				<?php foreach($data['list']['banking_cards'] as $cur): ?>
				<div style="margin-top: -1px; ">
					<div class="card-scrollbar" style="height:438px;overflow:hidden;" data-card="<?php echo $cur['id']?>">
						<div data-card="<?php echo $cur['id']?>" class="banking-card-rate">
							
						</div>
					</div>
				</div>
				<?php endforeach; ?>
			</div>
			<a class="view-more" id="card-view-more">Xem thêm</a>
		</div>
	</div>
	<div class="content-right padding-tabs advs" style="text-align: right;" data-page="<?php echo USER_DEFINED::ADV_PAGE_HOME_MIDDLE?>" data-attr='class="adv-middle"' data-page-num='1' data-limit='0'>
		<!--<div class="box">
			<div class="title">Tư vấn độc lập</div>
			<div class="content">
				<div class="support">
					Bạn có nhu cầu gửi tiền tiết kiệm với lãi suất tốt?<br/>
					Hãy gửi yêu cầu, chúng tôi sẽ liên hệ lại với bạn trong vòng 12h.<br/><br/>
					<a href="<?php echo url_for2('consulting_imdependent')?>" class="button button-right">Gửi yêu cầu </a>
					<div class="clr"></div>
				</div>
			</div>
		</div>
		 <div class="box">
			<div class="title">Tư vấn online</div>
			<div class="content">
				<div class="support load" data-banking-type="<?php echo USER_DEFINED::BANKING_TYPE_PERIOD?>">
					
				</div>
			</div>
		</div> -->
	</div>
	<div class="clr"></div>
</div> 
